package com.liruo.test.spring.annotationdep.bean.id;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @Author:liruo
 * @Date:2022-12-05-17:36:53
 * @Desc
 */
@Slf4j
public class AnnotationInClassAppoint {
    @PostConstruct
    private void init(){
        log.error(getClass().getName() + "=".repeat(20) + "PostConstruct init");
    }
    @PreDestroy
    private void destroy(){
        log.error(getClass().getName() + "=".repeat(20) + "PreDestroy destroy");
    }
}
